<template>
  <div>
    <p>{{ count }}</p>
    <!-- <Header @get="getCount" /> -->
    <Header ref="head" />
    <Tab />
  </div>
</template>

<script>
import Header from "./components/Header.vue";
import Tab from "./components/Tab.vue";
export default {
  name: "App",
  data() {
    return {
      count: 0,
    };
  },
  components: { Header, Tab },
  mounted() {
    this.$refs.head.$on("get", (count) => {
      this.count = count;
    });
  },
};
</script>

<style>
</style>